<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <!-- Name -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Time Span Alias')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[name]" id="c-local" class="form-control" value="{$row.name}"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- Month -->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Months')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[month]" class="form-control" >
                <option value="">{:__('Please select timespan')}</option>
                <option value="1">{:__('1 Month')}</option>
                <option value="3">{:__('2 Month')}</option>
                <option value="6">{:__('3 Month')}</option>
                <option value="12">{:__('12 Month')}</option>
                <option value="24">{:__('24 Month')}</option>
            </select>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>

    <!-- Currency -->
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Currency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[currency]" class="form-control">
                <option value="">{:__('Please select currency')}</option>
                <option value="rmb">{:__('rmb')}</option>
                <option value="dollor">{:__('dollor')}</option>
                <option value="vm">{:__('vm')}</option>
            </select>
        </div>
    </div>

    <!-- Money -->
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[money]"  type="number" value="{$row.money}">
        </div>
    </div>

    <!-- Sort -->
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[sort_order]"  type="number" value="{$row.sort_order}">
        </div>
    </div>


    <!-- Status -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')], $row.status)}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
